<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<script type="text/javascript" src="js/angular.js"></script>
	<title>AngularJS中的ForEach用法</title>
</head>
<body>
<h1>这里显示的是for-each用法</h1>
<script type="text/javascript">
var objs =[{a:1},{a:2}];
angular.forEach(objs, function(objs){
alert(objs.a);
});
</script>
</body>
</html>